﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/Admin.Master" AutoEventWireup="true"
    CodeBehind="Transaction.aspx.cs" Inherits="Business.Administrator.Transaction" %>

<asp:Content ID="Content1" ContentPlaceHolderID="AdminContent" runat="server">
    <div class="content-box-header">
        <h3>
            Danh sách sản phẩm</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <!-- This is the target div. id must match the href of this div's tab -->
            <div class="notification png_bg message" id="message" runat="server">
                <a href="#" class="close">
                    <img src="Images/Icons/cross_grey_small.png" title="Đóng thông báo" alt="close" /></a>
                <div>
                    <asp:Label ID="lblMessage" runat="server" Text="Label"></asp:Label>
                </div>
            </div>
            <asp:Label ID="Label1" runat="server" Text="Label">Nhà cung cấp</asp:Label>
            <asp:DropDownList ID="ddlProvider" runat="server" CssClass="small-input" DataTextField="ProviderName"
                DataValueField="ProviderID" OnSelectedIndexChanged="ddlProvider_SelectedIndexChanged"
                AutoPostBack="True">
            </asp:DropDownList>
            <asp:Label ID="Label2" runat="server" Text="Nhóm sản phẩm" Style="margin-left: 20px;"></asp:Label>
            <asp:DropDownList ID="ddlCategory" runat="server" CssClass="small-input" DataTextField="CatName"
                DataValueField="CatID">
            </asp:DropDownList>
            <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="button" OnClick="btnSearch_Click" />
            <asp:GridView ID="dtgProduct" runat="server" AutoGenerateColumns="false" DataKeyNames="ProductID">
                <AlternatingRowStyle BackColor="Azure" />
                <Columns>
                    <asp:TemplateField HeaderText="" HeaderStyle-Width="20">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" Enabled="true" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Sản phẩm" DataField="ProductName">
                        <HeaderStyle Width="200px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Đơn giá" DataField="ProductPrice">
                        <HeaderStyle Width="80px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="SL tối thiểu cập nhật kho">
                        <HeaderStyle Width="70px"></HeaderStyle>
                        <ItemTemplate>
                            <asp:TextBox ID="txtMinQuantity" runat="server" Width="70" Style="text-align: right"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="SL cập nhật">
                        <HeaderStyle Width="70px"></HeaderStyle>
                        <ItemTemplate>
                            <asp:TextBox ID="txtNextTransQuantity" runat="server" Width="70" Style="text-align: right"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="SL tối thiểu hổ trợ giao dịch" ItemStyle-HorizontalAlign="Right"
                        DataField="QuantityAtLeast">
                        <HeaderStyle Width="70px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Ngày bắt đầu">
                        <ItemTemplate>
                            <asp:TextBox ID="txtBeginTransDate" runat="server" Width="70"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày kết thúc">
                        <ItemTemplate>
                            <asp:TextBox ID="txtEndTransDate" runat="server" Width="70"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:HyperLinkField HeaderText="Link hình" DataTextField="ProductPhotoUrl" />
                    <asp:BoundField HeaderText="Mô tả" DataField="ProductDescription" />
                </Columns>
            </asp:GridView>
            <asp:Button ID="btnRegisterTrans" runat="server" Text="Đăng ký giao dịch" CssClass="button"
                Visible="False" OnClick="btnRegisterTrans_Click" />
        </div>
        <!-- End #tab1 -->
    </div>
    <!-- End .content-box-content -->
</asp:Content>
